﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Brjostagjof.Models.VideoViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Brjóstagjöf - MyndbandaListi
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h1>Listi af myndböndum</h1>
        
        
        <h2>Myndbönd af YouTube</h2>
        
            <% foreach (var yturl in Model.youtubes)
                { %>
                  <div class="myndbond">
                            <a id="logo" href="<%=Url.Content("~/Home/SynaYouTube/" + yturl.ID)%>"> <img class="myndmyndbond" src="/Content/myndband.jpg" alt="brjostagjof" /></a>
                            <%: Html.ActionLink(yturl.YTTitle, "SynaYouTube", new{id = yturl.ID})%><br />
                            <%: yturl.YTMessage %>
                    </div>
            <%} %>

        
        <h2>Myndbönd á síðunni.</h2>        
       
            <% foreach (var video in Model.videos)
               { %>
                <div class="myndbond">

                        <a id="A1" href="<%=Url.Content("~/Home/SynaYouTube/" + video.ID)%>"> <img class="myndmyndbond" src="/Content/myndband.jpg" alt="brjostagjof" /></a>
                        <%: Html.ActionLink(video.VideoTitle, "Myndbond", new {id = video.ID}) %><br />
                        <%: video.VideoMessage %>
                </div>
            <%} %>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Actions" runat="server" >
    <%Html.RenderPartial("PartialViews/Actions", "Video"); %>
</asp:Content>
